//Generate information:
using System;
using System.Collections.Generic;

using RexToy.ORM;
using RexToy.ORM.QueryModel;

namespace #{namespace}
{
	public class Schema
	{
		public Schema()
		{
			#{for t in tables}
			#{let f = t.CLRName.Substring(0, 1).ToLower() + t.CLRName.Substring(1)}
			_#{f} = new View<#{t.CLRName}>();
			#{end}
		}

		#{for t in tables}
		#{let field = t.CLRName.Substring(0, 1).ToLower() + t.CLRName.Substring(1)}
		private View<#{t.CLRName}> _#{field};
		public View<#{t.CLRName}> #{t.CLRName}
		{
			get { return _#{field}; }
		}
		#{end}
	}
}